package com.sentinel.feign.client;

import com.sentinel.feign.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @作者: 林江
 * @创建时间: 2023/12/16
 * @功能:
 */
@FeignClient(value = "sentinel-user", fallback = UserClientFallBack.class)
public interface UserClient {
    @GetMapping("/user/{id}")
    User getUser(@PathVariable("id") Integer id);

}
